package com.zhihuanbao.business.domain;

import com.zhihuanbao.common.annotation.Excel;
import com.zhihuanbao.common.core.domain.BaseEntity;
import com.zhihuanbao.common.core.domain.entity.SysDept;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.ArrayList;
import java.util.List;

/**
 * 行业代码对象 biz_industry_code
 * 
 * @author zhihuanbao
 * @date 2024-06-11
 */
public class BizIndustryCode extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 行业名称 */
    @Excel(name = "行业名称")
    private String name;

    /** 行业代码 */
    @Excel(name = "行业代码")
    private String code;

    /** 父级编号 */
    @Excel(name = "父级编号")
    private Long parentId;

    /** 描述 */
    @Excel(name = "描述")
    private String desc;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setDesc(String desc) 
    {
        this.desc = desc;
    }

    public String getDesc() 
    {
        return desc;
    }

    /** 子代码 */
    private List<BizIndustryCode> children = new ArrayList<BizIndustryCode>();

    public List<BizIndustryCode> getChildren()
    {
        return children;
    }

    public void setChildren(List<BizIndustryCode> children)
    {
        this.children = children;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("code", getCode())
            .append("parentId", getParentId())
            .append("desc", getDesc())
            .toString();
    }
}
